package com.yidu.sanrenxing.crudall.service.impl;

import com.yidu.sanrenxing.crudall.dao.ConfigMapper;
import com.yidu.sanrenxing.crudall.domain.Config;
import com.yidu.sanrenxing.crudall.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConfigServiceImpl implements ConfigService {
    @Autowired
    ConfigMapper configMapper;
    @Override
    public List<Config> selectAll() {
        return configMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(int configid) {
        return configMapper.deleteByPrimaryKey(configid);
    }

    @Override
    public int insert(Config record) {
        return configMapper.insert(record);
    }

    @Override
    public int insertSelective(Config record) {
        return configMapper.insertSelective(record);
    }

    @Override
    public Config selectByPrimaryKey(int configid) {
        return configMapper.selectByPrimaryKey(configid);
    }

    @Override
    public int updateByPrimaryKeySelective(Config record) {
        return configMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Config record) {
        return configMapper.updateByPrimaryKey(record);
    }
}
